package com.bw.paper.network;


import com.bw.paper.mvp.base.model.BaseEntity;

import io.reactivex.annotations.NonNull;
import io.reactivex.functions.Function;
//针对网络请求中rxjava 异步任务调度时子类向基类转型的工具类
public class ChangeFunction<T extends  BaseEntity> implements Function <T ,BaseEntity>{
    @Override
    public BaseEntity apply(@NonNull T t) throws Exception {
        return t;
    }
}
